.class public Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;
.super Lcom/google/android/maps/MapActivity;
.source "FootprintDetailEditActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# static fields
.field private static final CHOOSE_PHOTO_DIALOG:I = 0xa

.field private static final DELETE_FOOTPRINT_DIALOG:I = 0xf

.field private static final FIRST_RETRIEVE_ADDRESS_DIALOG:I = 0xd

.field private static final HANDLE_DISMISS_PROGRESS_DIALOG:I = 0x65

.field private static final HANDLE_FIRST_RETRIEVE_ADDRESS:I = 0x67

.field private static final HANDLE_GEOCODER_BY_GPS:I = 0x66

.field private static final HANDLE_UPDATE_ADDRESS:I = 0x64

.field public static final IMAGE_UNSPECIFIED:Ljava/lang/String; = "image/*"

.field private static final LOCATION_PICKER_NOT_FOUND_DIALOG:I = 0x10

.field private static final LOCATION_SOURCE_DISABLED_DIALOG:I = 0x12

.field private static final MENU_ALL_FOOTPRINTS:I = 0x0

.field private static final MENU_DELETE:I = 0x1

.field private static final PHOTO_PICKER_NOT_FOUND_DIALOG:I = 0x11

.field private static final PROGRESS_DIALOG:I = 0xe

.field private static final REQUEST_CHOOSE_PHOTO:I = 0x2

.field private static final REQUEST_EDIT_LOCATION:I = 0x5

.field private static final REQUEST_PHOTO_PICKED_WITH_DATA:I = 0x4

.field private static final REQUEST_RECAPTURE:I = 0x3

.field private static final RESULT_LOCATION_PICKER:I = 0x1

.field private static final SELECT_CATEGORY_DIALOG:I = 0xb

.field private static final SELECT_LOCATION_DIALOG:I = 0xc

.field private static final SERVICE_BINDED:I = 0x2

.field private static final SERVICE_BINDING:I = 0x1

.field private static final SERVICE_UNBIND:I = 0x0

.field private static final TAG:Ljava/lang/String; = "FootprintDetailEditActivity"

.field private static final WIRELESS_DISABLED_DIALOG:I = 0x13


# instance fields
.field private addressText:Landroid/widget/TextView;

.field private categories:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/htc/android/footprints/vo/Category;",
            ">;"
        }
    .end annotation
.end field

.field private categoryButton:Landroid/widget/Button;

.field private categoryIndex:I

.field private categoryNames:[Ljava/lang/String;

.field private connectionFailedText:Landroid/widget/TextView;

.field dlgKeyListener:Landroid/content/DialogInterface$OnKeyListener;

.field private gpsEnabled:Z

.field private gpsUpdateRequired:Z

.field private isDelete:Z

.field private isPickerRunning:Z

.field private isRecaptureRunning:Z

.field private locationText:Landroid/widget/TextView;

.field private mBalloonView:Landroid/widget/ImageView;

.field private mBindState:I

.field private mCacheLat:I

.field private mCacheLog:I

.field private mCachePhotoName:Ljava/lang/String;

.field private mCallback:Lcom/htc/android/footprints/ILocationAgentCallback;

.field private mChoosePhotoCb:Landroid/view/View$OnClickListener;

.field private mConnection:Landroid/content/ServiceConnection;

.field private mContext:Landroid/content/Context;

.field private mFixLocation:Landroid/location/Location;

.field private mFixNetwork:Landroid/location/Location;

.field private mFootprint:Lcom/htc/android/footprints/vo/Footprint;

.field private mGpsUpdate:Landroid/widget/ImageView;

.field private final mHandler:Landroid/os/Handler;

.field private mIsSaved:Z

.field private mListDialog:Lcom/htc/widget/HtcAlertDialog;

.field private mMap:Lcom/google/android/maps/MapView;

.field mMapButton:Landroid/view/View$OnClickListener;

.field private mMediaPanel:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

.field private mPhotoBitmap:Landroid/graphics/Bitmap;

.field private mSelectCategoryListener:Landroid/view/View$OnClickListener;

.field mService:Lcom/htc/android/footprints/ILocationAgentService;

.field private mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

.field private mTextLatLon:Landroid/widget/TextView;

.field private networkConnected:Z

.field private onGpsUpdateClickListenerDoUpdate:Landroid/view/View$OnClickListener;

.field private onGpsUpdateClickListenerShowAlert:Landroid/view/View$OnClickListener;

.field private onTextLatLonClickListener:Landroid/view/View$OnClickListener;

.field private phoneText:Landroid/widget/TextView;

.field private photoView:Landroid/widget/ImageView;

.field private progressDialog:Landroid/app/ProgressDialog;

.field private rating:Landroid/widget/RatingBar;

.field private saveButton:Landroid/view/View;

.field private textCreateDate:Landroid/widget/TextView;

.field private textCreateTime:Landroid/widget/TextView;

.field private textNote:Landroid/widget/TextView;

.field private titleText:Landroid/widget/EditText;

.field private webText:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    const/4 v0, 0x0

    .line 75
    invoke-direct {p0}, Lcom/google/android/maps/MapActivity;-><init>()V

    .line 92
    iput-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixNetwork:Landroid/location/Location;

    .line 93
    iput-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mPhotoBitmap:Landroid/graphics/Bitmap;

    .line 105
    iput-boolean v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsUpdateRequired:Z

    .line 106
    iput-boolean v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isPickerRunning:Z

    .line 107
    iput-boolean v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isRecaptureRunning:Z

    .line 108
    iput-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->connectionFailedText:Landroid/widget/TextView;

    .line 121
    iput v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mCacheLat:I

    .line 122
    iput v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mCacheLog:I

    .line 124
    iput-boolean v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mIsSaved:Z

    .line 127
    iput-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mListDialog:Lcom/htc/widget/HtcAlertDialog;

    .line 132
    iput-boolean v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isDelete:Z

    .line 148
    iput v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBindState:I

    .line 478
    new-instance v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$4;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$4;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mHandler:Landroid/os/Handler;

    .line 861
    new-instance v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$7;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$7;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMapButton:Landroid/view/View$OnClickListener;

    .line 1022
    new-instance v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$8;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$8;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mSelectCategoryListener:Landroid/view/View$OnClickListener;

    .line 1028
    new-instance v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$9;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$9;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mChoosePhotoCb:Landroid/view/View$OnClickListener;

    .line 1283
    new-instance v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$15;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$15;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->dlgKeyListener:Landroid/content/DialogInterface$OnKeyListener;

    .line 1302
    new-instance v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$16;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mConnection:Landroid/content/ServiceConnection;

    .line 1342
    new-instance v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$17;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mCallback:Lcom/htc/android/footprints/ILocationAgentCallback;

    .line 1461
    new-instance v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$18;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$18;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->onTextLatLonClickListener:Landroid/view/View$OnClickListener;

    .line 1482
    new-instance v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$19;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$19;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->onGpsUpdateClickListenerShowAlert:Landroid/view/View$OnClickListener;

    .line 1488
    new-instance v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$20;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$20;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->onGpsUpdateClickListenerDoUpdate:Landroid/view/View$OnClickListener;

    return-void
.end method

.method static synthetic access$000(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 75
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->openMapView()V

    return-void
.end method

.method static synthetic access$100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/vo/Footprint;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    return-object v0
.end method

.method static synthetic access$1000(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/location/Location;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixLocation:Landroid/location/Location;

    return-object v0
.end method

.method static synthetic access$1002(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Landroid/location/Location;)Landroid/location/Location;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 75
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixLocation:Landroid/location/Location;

    return-object p1
.end method

.method static synthetic access$1100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Landroid/location/Location;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 75
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->geocoderTitle(Landroid/location/Location;)V

    return-void
.end method

.method static synthetic access$1200(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/os/Handler;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mHandler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$1300(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mCacheLat:I

    return v0
.end method

.method static synthetic access$1400(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mCacheLog:I

    return v0
.end method

.method static synthetic access$1500(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mCachePhotoName:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$1600(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->locationText:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$1702(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 75
    iput-boolean p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isPickerRunning:Z

    return p1
.end method

.method static synthetic access$1800(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 75
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->doPickPhotoAction()V

    return-void
.end method

.method static synthetic access$1902(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 75
    iput-boolean p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isRecaptureRunning:Z

    return p1
.end method

.method static synthetic access$200(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/ImageView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->photoView:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$2000(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Ljava/util/ArrayList;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categories:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$2100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/Button;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categoryButton:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic access$2202(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 75
    iput p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categoryIndex:I

    return p1
.end method

.method static synthetic access$2300(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/location/Location;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixNetwork:Landroid/location/Location;

    return-object v0
.end method

.method static synthetic access$2302(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Landroid/location/Location;)Landroid/location/Location;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 75
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixNetwork:Landroid/location/Location;

    return-object p1
.end method

.method static synthetic access$2400(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/ImageView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mGpsUpdate:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$2502(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 75
    iput-boolean p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isDelete:Z

    return p1
.end method

.method static synthetic access$2600(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-boolean v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsUpdateRequired:Z

    return v0
.end method

.method static synthetic access$2602(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 75
    iput-boolean p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsUpdateRequired:Z

    return p1
.end method

.method static synthetic access$2700(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/widget/HtcAlertDialog;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mListDialog:Lcom/htc/widget/HtcAlertDialog;

    return-object v0
.end method

.method static synthetic access$2802(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 75
    iput p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBindState:I

    return p1
.end method

.method static synthetic access$2900(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Lcom/htc/android/footprints/ILocationAgentCallback;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mCallback:Lcom/htc/android/footprints/ILocationAgentCallback;

    return-object v0
.end method

.method static synthetic access$300(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Landroid/content/Intent;)Z
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 75
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isSetasFootprints(Landroid/content/Intent;)Z

    move-result v0

    return v0
.end method

.method static synthetic access$3000(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mTextLatLon:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$3100(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 75
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->moveMapCenterToCurrent()V

    return-void
.end method

.method static synthetic access$3200(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-boolean v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsEnabled:Z

    return v0
.end method

.method static synthetic access$400(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/graphics/Bitmap;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mPhotoBitmap:Landroid/graphics/Bitmap;

    return-object v0
.end method

.method static synthetic access$500(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->textCreateDate:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$502(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Landroid/widget/TextView;)Landroid/widget/TextView;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 75
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->textCreateDate:Landroid/widget/TextView;

    return-object p1
.end method

.method static synthetic access$600(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->textCreateTime:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$602(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Landroid/widget/TextView;)Landroid/widget/TextView;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 75
    iput-object p1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->textCreateTime:Landroid/widget/TextView;

    return-object p1
.end method

.method static synthetic access$700(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->textNote:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$800(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/app/ProgressDialog;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->progressDialog:Landroid/app/ProgressDialog;

    return-object v0
.end method

.method static synthetic access$900(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)Landroid/widget/TextView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 75
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->addressText:Landroid/widget/TextView;

    return-object v0
.end method

.method private bindLocationAgentService()V
    .locals 4

    .prologue
    const/4 v3, 0x1

    .line 151
    const-string v1, "FootprintDetailEditActivity"

    const-string v2, "bind LocationAgentService. mBindState = SERVICE_BINDING"

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 152
    iput v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBindState:I

    .line 154
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 155
    .local v0, intent:Landroid/content/Intent;
    const-class v1, Lcom/htc/android/footprints/service/LocationAgentService;

    invoke-virtual {v0, p0, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;

    .line 156
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mConnection:Landroid/content/ServiceConnection;

    invoke-virtual {p0, v0, v1, v3}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->bindService(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z

    .line 157
    return-void
.end method

.method private checkWirelessNetwork()Z
    .locals 5

    .prologue
    .line 697
    const/4 v0, 0x0

    .line 698
    .local v0, connected:Z
    const-string v3, "connectivity"

    invoke-virtual {p0, v3}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/net/ConnectivityManager;

    .line 699
    .local v1, connectivity:Landroid/net/ConnectivityManager;
    if-eqz v1, :cond_0

    .line 700
    invoke-virtual {v1}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;

    move-result-object v2

    .line 701
    .local v2, info:Landroid/net/NetworkInfo;
    if-eqz v2, :cond_0

    invoke-virtual {v2}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State;

    move-result-object v3

    sget-object v4, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State;

    if-ne v3, v4, :cond_0

    .line 702
    const/4 v0, 0x1

    .line 705
    .end local v2           #info:Landroid/net/NetworkInfo;
    :cond_0
    return v0
.end method

.method private doPickPhotoAction()V
    .locals 6

    .prologue
    const/16 v5, 0x190

    const/4 v4, 0x1

    .line 841
    new-instance v1, Landroid/content/Intent;

    const-string v2, "com.htc.HTCAlbum.action.ITEM_PICKER_FROM_COLLECTIONS"

    const/4 v3, 0x0

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 842
    .local v1, intent:Landroid/content/Intent;
    const-string v2, "image/*"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 843
    const-string v2, "crop"

    const-string v3, "true"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 844
    const-string v2, "aspectX"

    invoke-virtual {v1, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 845
    const-string v2, "aspectY"

    invoke-virtual {v1, v2, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 846
    const-string v2, "outputX"

    invoke-virtual {v1, v2, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 847
    const-string v2, "outputY"

    invoke-virtual {v1, v2, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 849
    :try_start_0
    const-string v2, "return-data"

    const/4 v3, 0x1

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 850
    const/4 v2, 0x2

    invoke-virtual {p0, v1, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->startActivityForResult(Landroid/content/Intent;I)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    .line 854
    :goto_0
    return-void

    .line 851
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 852
    .local v0, e:Landroid/content/ActivityNotFoundException;
    const/16 v2, 0x11

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->showDialog(I)V

    goto :goto_0
.end method

.method private geocoderTitle(Landroid/location/Location;)V
    .locals 4
    .parameter "location"

    .prologue
    const-string v3, "FootprintDetailEditActivity"

    .line 507
    invoke-virtual {p1}, Landroid/location/Location;->getProvider()Ljava/lang/String;

    move-result-object v1

    .line 508
    .local v1, source:Ljava/lang/String;
    invoke-static {p0}, Lcom/htc/android/footprints/utils/SettingInfo;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/SettingInfo;

    move-result-object v0

    .line 509
    .local v0, setting:Lcom/htc/android/footprints/utils/SettingInfo;
    const-string v2, "gps"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string v2, "map"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 511
    :cond_0
    const-string v2, "FootprintDetailEditActivity"

    const-string v2, "geocoderTitle by using GPS"

    invoke-static {v3, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 513
    iget-boolean v2, v0, Lcom/htc/android/footprints/utils/SettingInfo;->retrieveAddress:Z

    if-eqz v2, :cond_1

    .line 516
    const/16 v2, 0xe

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->showDialog(I)V

    .line 522
    :cond_1
    :goto_0
    invoke-static {p0}, Lcom/htc/android/footprints/utils/TitleGenerator;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/TitleGenerator;

    move-result-object v2

    new-instance v3, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$5;

    invoke-direct {v3, p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$5;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Lcom/htc/android/footprints/utils/SettingInfo;)V

    invoke-virtual {v2, p1, v3}, Lcom/htc/android/footprints/utils/TitleGenerator;->getTitleFromNetwork(Landroid/location/Location;Lcom/htc/android/footprints/utils/TitleGenerator$SearchListener;)V

    .line 552
    return-void

    .line 519
    :cond_2
    const-string v2, "FootprintDetailEditActivity"

    const-string v2, "geocoderTitle by using network"

    invoke-static {v3, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method

.method private getOriginalCategoryNameAndRecordIndex(Ljava/lang/String;)Ljava/lang/String;
    .locals 6
    .parameter "keyword"

    .prologue
    .line 1008
    const v5, 0x7f0a00ad

    invoke-virtual {p0, v5}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 1009
    .local v3, result:Ljava/lang/String;
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categories:Ljava/util/ArrayList;

    .line 1010
    .local v2, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Category;>;"
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v4

    .line 1011
    .local v4, size:I
    const/4 v1, 0x0

    .local v1, i:I
    :goto_0
    if-ge v1, v4, :cond_0

    .line 1012
    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/vo/Category;

    .line 1013
    .local v0, c:Lcom/htc/android/footprints/vo/Category;
    iget-object v5, v0, Lcom/htc/android/footprints/vo/Category;->mKeyword:Ljava/lang/String;

    invoke-virtual {p1, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 1014
    iget-object v3, v0, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    .line 1015
    iput v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categoryIndex:I

    .line 1019
    .end local v0           #c:Lcom/htc/android/footprints/vo/Category;
    :cond_0
    return-object v3

    .line 1011
    .restart local v0       #c:Lcom/htc/android/footprints/vo/Category;
    :cond_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method

.method private initCategoryData()V
    .locals 5

    .prologue
    .line 998
    invoke-static {p0}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v3

    invoke-virtual {v3}, Lcom/htc/android/footprints/provider/FootprintManager;->getAllCategory()Ljava/util/ArrayList;

    move-result-object v1

    .line 999
    .local v1, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Category;>;"
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v2

    .line 1000
    .local v2, size:I
    new-array v3, v2, [Ljava/lang/String;

    iput-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categoryNames:[Ljava/lang/String;

    .line 1001
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    if-ge v0, v2, :cond_0

    .line 1002
    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categoryNames:[Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/htc/android/footprints/vo/Category;

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Category;->mName:Ljava/lang/String;

    aput-object v3, v4, v0

    .line 1001
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 1004
    :cond_0
    iput-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categories:Ljava/util/ArrayList;

    .line 1005
    return-void
.end method

.method private innerUnbindLocationAgentService(Z)V
    .locals 3
    .parameter "needShutdownAgent"

    .prologue
    .line 161
    :try_start_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    if-eqz v1, :cond_0

    .line 162
    const-string v1, "FootprintDetailEditActivity"

    const-string v2, "removeCallback"

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 163
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mCallback:Lcom/htc/android/footprints/ILocationAgentCallback;

    invoke-interface {v1, v2}, Lcom/htc/android/footprints/ILocationAgentService;->removeCallback(Lcom/htc/android/footprints/ILocationAgentCallback;)Z

    .line 164
    if-eqz p1, :cond_0

    .line 165
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v1}, Lcom/htc/android/footprints/ILocationAgentService;->shutdownAgent()V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 171
    :cond_0
    :goto_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mConnection:Landroid/content/ServiceConnection;

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->unbindService(Landroid/content/ServiceConnection;)V

    .line 172
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    .line 173
    const/4 v1, 0x0

    iput v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBindState:I

    .line 174
    return-void

    .line 168
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 169
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0
.end method

.method private isSetasFootprints(Landroid/content/Intent;)Z
    .locals 2
    .parameter "intent"

    .prologue
    .line 138
    if-eqz p1, :cond_0

    invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_1

    .line 139
    :cond_0
    const/4 v0, 0x0

    .line 141
    :goto_0
    return v0

    :cond_1
    invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    const-string v1, "com.htc.android.setasFootprint"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    goto :goto_0
.end method

.method private moveMapCenterToCurrent()V
    .locals 3

    .prologue
    .line 987
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->locationText:Landroid/widget/TextView;

    const v2, 0x7f0a003c

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V

    .line 988
    new-instance v0, Lcom/google/android/maps/GeoPoint;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-direct {v0, v1, v2}, Lcom/google/android/maps/GeoPoint;-><init>(II)V

    .line 992
    .local v0, newCenter:Lcom/google/android/maps/GeoPoint;
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v1}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/google/android/maps/MapController;->animateTo(Lcom/google/android/maps/GeoPoint;)V

    .line 993
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v1}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v2}, Lcom/google/android/maps/MapView;->getMaxZoomLevel()I

    move-result v2

    invoke-virtual {v1, v2}, Lcom/google/android/maps/MapController;->setZoom(I)I

    .line 994
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->showBalloon()V

    .line 995
    return-void
.end method

.method private openMapView()V
    .locals 12

    .prologue
    const/16 v11, 0xa

    const/4 v9, 0x5

    const/4 v10, 0x0

    .line 719
    const v0, 0x7f0c0046

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/LinearLayout;

    .line 721
    .local v6, layout:Landroid/widget/LinearLayout;
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f030004

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/ImageButton;

    .line 722
    .local v7, mTapMapViewButton:Landroid/widget/ImageButton;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMapButton:Landroid/view/View$OnClickListener;

    invoke-virtual {v7, v0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 724
    const v0, 0x7f020026

    invoke-virtual {v7, v0}, Landroid/widget/ImageButton;->setBackgroundResource(I)V

    .line 726
    const v0, 0x7f0200ac

    invoke-virtual {v7, v0}, Landroid/widget/ImageButton;->setImageResource(I)V

    .line 727
    sget-object v0, Landroid/widget/ImageView$ScaleType;->CENTER_INSIDE:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v7, v0}, Landroid/widget/ImageButton;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 739
    iget-object v8, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    new-instance v0, Lcom/google/android/maps/MapView$LayoutParams;

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f090011

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v1

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f090010

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I

    move-result v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v3}, Lcom/google/android/maps/MapView;->getWidth()I

    move-result v3

    sub-int/2addr v3, v9

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v4}, Lcom/google/android/maps/MapView;->getHeight()I

    move-result v4

    sub-int/2addr v4, v9

    const/16 v5, 0x55

    invoke-direct/range {v0 .. v5}, Lcom/google/android/maps/MapView$LayoutParams;-><init>(IIIII)V

    invoke-virtual {v8, v7, v0}, Lcom/google/android/maps/MapView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 745
    new-instance v0, Landroid/view/TouchDelegate;

    new-instance v1, Landroid/graphics/Rect;

    const/16 v2, 0x140

    const/16 v3, 0x104

    invoke-direct {v1, v10, v10, v2, v3}, Landroid/graphics/Rect;-><init>(IIII)V

    invoke-direct {v0, v1, v7}, Landroid/view/TouchDelegate;-><init>(Landroid/graphics/Rect;Landroid/view/View;)V

    invoke-virtual {v6, v0}, Landroid/widget/LinearLayout;->setTouchDelegate(Landroid/view/TouchDelegate;)V

    .line 748
    invoke-static {p0}, Lcom/htc/android/footprints/utils/SettingInfo;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/SettingInfo;

    move-result-object v0

    iget-boolean v0, v0, Lcom/htc/android/footprints/utils/SettingInfo;->showConnectionFailedAlert:Z

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->networkConnected:Z

    if-nez v0, :cond_0

    .line 749
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->connectionFailedText:Landroid/widget/TextView;

    if-nez v0, :cond_0

    .line 750
    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->connectionFailedText:Landroid/widget/TextView;

    .line 751
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->connectionFailedText:Landroid/widget/TextView;

    const v1, 0x7f0a0091

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 752
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->connectionFailedText:Landroid/widget/TextView;

    const v1, -0xcccccd

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 754
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->connectionFailedText:Landroid/widget/TextView;

    invoke-virtual {v0, v11, v9, v11, v9}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 755
    iget-object v8, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    iget-object v9, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->connectionFailedText:Landroid/widget/TextView;

    new-instance v0, Lcom/google/android/maps/MapView$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    const/16 v5, 0x33

    move v3, v10

    move v4, v10

    invoke-direct/range {v0 .. v5}, Lcom/google/android/maps/MapView$LayoutParams;-><init>(IIIII)V

    invoke-virtual {v8, v9, v0}, Lcom/google/android/maps/MapView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 759
    :cond_0
    return-void
.end method

.method private removeQueuedMessages()V
    .locals 2

    .prologue
    .line 472
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mHandler:Landroid/os/Handler;

    const/16 v1, 0x65

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 473
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mHandler:Landroid/os/Handler;

    const/16 v1, 0x64

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 474
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mHandler:Landroid/os/Handler;

    const/16 v1, 0x66

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 475
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mHandler:Landroid/os/Handler;

    const/16 v1, 0x67

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 476
    return-void
.end method

.method private saveFootprint()V
    .locals 7

    .prologue
    const-string v6, ".jpg"

    .line 799
    iget-boolean v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mIsSaved:Z

    if-eqz v1, :cond_0

    .line 834
    :goto_0
    return-void

    .line 802
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mPhotoBitmap:Landroid/graphics/Bitmap;

    if-eqz v1, :cond_1

    .line 803
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v0

    .line 805
    .local v0, file_name:Ljava/lang/String;
    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getInstance()Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-result-object v1

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mPhotoBitmap:Landroid/graphics/Bitmap;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, ".jpg"

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v2, v3, v4}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->forceWriteToFile(Landroid/content/ContentResolver;Landroid/graphics/Bitmap;Ljava/lang/String;)Z

    .line 807
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getDirectory()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    sget-object v3, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ".jpg"

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    .line 809
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ".jpg"

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/htc/android/footprints/vo/Footprint;->mPicFileName:Ljava/lang/String;

    .line 813
    .end local v0           #file_name:Ljava/lang/String;
    :cond_1
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->populateToFootprint()V

    .line 815
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMediaPanel:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    invoke-virtual {v1}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->stopMediaControlPanel()V

    .line 816
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v1, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->addFootprint(Lcom/htc/android/footprints/vo/Footprint;)I

    .line 817
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mPhotoBitmap:Landroid/graphics/Bitmap;

    .line 818
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-direct {p0, v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isSetasFootprints(Landroid/content/Intent;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 819
    new-instance v1, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$6;

    invoke-direct {v1, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$6;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    invoke-virtual {v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$6;->start()V

    .line 833
    :cond_2
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mIsSaved:Z

    goto/16 :goto_0
.end method

.method private selectMediaByType(Landroid/content/Context;ILjava/lang/String;)V
    .locals 3
    .parameter "context"
    .parameter "requestCode"
    .parameter "contentType"

    .prologue
    .line 1041
    instance-of v2, p1, Landroid/app/Activity;

    if-eqz v2, :cond_0

    .line 1043
    new-instance v0, Landroid/content/Intent;

    const-string v2, "android.intent.action.GET_CONTENT"

    invoke-direct {v0, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 1044
    .local v0, innerIntent:Landroid/content/Intent;
    invoke-virtual {v0, p3}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    .line 1045
    const-string v2, "choose photo"

    invoke-static {v0, v2}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object v1

    .line 1047
    .local v1, wrapperIntent:Landroid/content/Intent;
    check-cast p1, Landroid/app/Activity;

    .end local p1
    invoke-virtual {p1, v1, p2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    .line 1050
    .end local v0           #innerIntent:Landroid/content/Intent;
    .end local v1           #wrapperIntent:Landroid/content/Intent;
    :cond_0
    return-void
.end method

.method private setAsFootprint(Landroid/content/Intent;)Lcom/htc/android/footprints/vo/Footprint;
    .locals 7
    .parameter "intent"

    .prologue
    const/4 v6, 0x0

    .line 1414
    if-nez p1, :cond_0

    move-object v4, v6

    .line 1458
    :goto_0
    return-object v4

    .line 1415
    :cond_0
    const/4 v3, -0x1

    .line 1417
    .local v3, loc:I
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v0

    .line 1419
    .local v0, current_time:Ljava/lang/String;
    invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v1

    .line 1420
    .local v1, data:Landroid/os/Bundle;
    const-string v4, "data"

    invoke-virtual {v1, v4}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v4

    check-cast v4, Landroid/graphics/Bitmap;

    iput-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mPhotoBitmap:Landroid/graphics/Bitmap;

    .line 1433
    new-instance v2, Lcom/htc/android/footprints/vo/Footprint;

    invoke-direct {v2}, Lcom/htc/android/footprints/vo/Footprint;-><init>()V

    .line 1434
    .local v2, footprint:Lcom/htc/android/footprints/vo/Footprint;
    const-string v4, "filename"

    invoke-virtual {v1, v4}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    .line 1435
    iget-object v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    const-string v5, ".jpg"

    invoke-virtual {v4, v5}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v3

    if-lez v3, :cond_1

    .line 1436
    iget-object v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    const/4 v5, 0x0

    invoke-virtual {v4, v5, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    .line 1438
    :cond_1
    iget-object v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    if-eqz v4, :cond_2

    iget-object v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v4

    if-nez v4, :cond_3

    .line 1439
    :cond_2
    iput-object v0, v2, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    .line 1441
    :cond_3
    invoke-static {v0}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    iput-wide v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mCreateTime:J

    .line 1442
    const-string v4, "favorite"

    iput-object v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mCategory:Ljava/lang/String;

    .line 1443
    const/4 v4, 0x3

    iput v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mRate:I

    .line 1446
    const-string v4, "GPSLatitude"

    invoke-virtual {v1, v4}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "GPSLatitudeRef"

    invoke-virtual {v1, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/htc/android/footprints/utils/FootprintUtils;->convertRationalLatLonToInt(Ljava/lang/String;Ljava/lang/String;)I

    move-result v4

    iput v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    .line 1447
    const-string v4, "GPSLongitude"

    invoke-virtual {v1, v4}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "GPSLongitudeRef"

    invoke-virtual {v1, v5}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/htc/android/footprints/utils/FootprintUtils;->convertRationalLatLonToInt(Ljava/lang/String;Ljava/lang/String;)I

    move-result v4

    iput v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    .line 1449
    iget v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    if-nez v4, :cond_4

    iget v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    if-eqz v4, :cond_5

    .line 1450
    :cond_4
    const/4 v4, 0x2

    iput v4, v2, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    .line 1452
    :cond_5
    invoke-virtual {v2, v6}, Lcom/htc/android/footprints/vo/Footprint;->setAudio(Ljava/lang/String;)V

    move-object v4, v2

    .line 1458
    goto/16 :goto_0
.end method

.method private showBalloon()V
    .locals 6

    .prologue
    const/16 v5, 0x28

    .line 709
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBalloonView:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Lcom/google/android/maps/MapView;->removeView(Landroid/view/View;)V

    .line 711
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-lez v0, :cond_0

    .line 712
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBalloonView:Landroid/widget/ImageView;

    new-instance v2, Lcom/google/android/maps/MapView$LayoutParams;

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v3}, Lcom/htc/android/footprints/vo/Footprint;->getPoint()Lcom/google/android/maps/GeoPoint;

    move-result-object v3

    const/16 v4, 0x51

    invoke-direct {v2, v5, v5, v3, v4}, Lcom/google/android/maps/MapView$LayoutParams;-><init>(IILcom/google/android/maps/GeoPoint;I)V

    invoke-virtual {v0, v1, v2}, Lcom/google/android/maps/MapView;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 715
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v0}, Lcom/google/android/maps/MapView;->invalidate()V

    .line 716
    return-void
.end method

.method private showToast(Ljava/lang/String;)V
    .locals 1
    .parameter "showmsg"

    .prologue
    .line 1053
    if-eqz p1, :cond_0

    .line 1054
    const/16 v0, 0xbb8

    invoke-static {p0, p1, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    .line 1056
    :cond_0
    return-void
.end method

.method private unbindLocationAgentService(Z)V
    .locals 3
    .parameter "needShutdownAgent"

    .prologue
    const-string v2, "FootprintDetailEditActivity"

    .line 177
    const-string v0, "FootprintDetailEditActivity"

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "unbind LocationAgentService. mBindState = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBindState:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v2, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 178
    iget v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBindState:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 180
    const-string v0, "FootprintDetailEditActivity"

    const-string v0, "LocationAgentService is still in binding. but user call unbind"

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 182
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->innerUnbindLocationAgentService(Z)V

    .line 188
    :cond_0
    :goto_0
    return-void

    .line 183
    :cond_1
    iget v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBindState:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_2

    .line 184
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->innerUnbindLocationAgentService(Z)V

    goto :goto_0

    .line 185
    :cond_2
    iget v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBindState:I

    if-nez v0, :cond_0

    .line 186
    const-string v0, "FootprintDetailEditActivity"

    const-string v0, "LocationAgentService is not bind. but user call unbind"

    invoke-static {v2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0
.end method


# virtual methods
.method protected isRouteDisplayed()Z
    .locals 1

    .prologue
    .line 858
    const/4 v0, 0x0

    return v0
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 18
    .parameter "requestCode"
    .parameter "resultCode"
    .parameter "data"

    .prologue
    .line 557
    const/4 v14, 0x1

    move/from16 v0, p1

    move v1, v14

    if-ne v0, v1, :cond_4

    .line 558
    const/4 v14, 0x0

    move v0, v14

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isPickerRunning:Z

    .line 560
    :try_start_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    move-object v14, v0

    if-eqz v14, :cond_0

    .line 561
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    move-object v14, v0

    const/4 v15, 0x1

    invoke-interface {v14, v15}, Lcom/htc/android/footprints/ILocationAgentService;->setTimeoutNotify(Z)V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 567
    :cond_0
    :goto_0
    const/4 v14, -0x1

    move/from16 v0, p2

    move v1, v14

    if-eq v0, v1, :cond_2

    .line 673
    .end local p1
    :cond_1
    :goto_1
    return-void

    .line 563
    .restart local p1
    :catch_0
    move-exception v14

    move-object v5, v14

    .line 564
    .local v5, e1:Landroid/os/RemoteException;
    invoke-virtual {v5}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0

    .line 569
    .end local v5           #e1:Landroid/os/RemoteException;
    :cond_2
    if-eqz p3, :cond_1

    .line 570
    const-string v14, "RETURN_LATITUDE"

    const-wide/16 v15, 0x0

    move-object/from16 v0, p3

    move-object v1, v14

    move-wide v2, v15

    invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->getDoubleExtra(Ljava/lang/String;D)D

    move-result-wide v7

    .line 572
    .local v7, lat:D
    const-string v14, "RETURN_LONGITUDE"

    const-wide/16 v15, 0x0

    move-object/from16 v0, p3

    move-object v1, v14

    move-wide v2, v15

    invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->getDoubleExtra(Ljava/lang/String;D)D

    move-result-wide v10

    .line 574
    .local v10, lon:D
    const-string v14, "RETURN_ZOOM"

    const/4 v15, 0x2

    move-object/from16 v0, p3

    move-object v1, v14

    move v2, v15

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v13

    .line 576
    .local v13, zoom:I
    const-string v14, "RETURN_URL"

    move-object/from16 v0, p3

    move-object v1, v14

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 583
    .local v12, url:Ljava/lang/String;
    const-string v14, "FootprintDetailEditActivity"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    const-string v16, "picker latitude = "

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15, v7, v8}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-static {v14, v15}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 584
    const-string v14, "FootprintDetailEditActivity"

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    const-string v16, "picker longitude = "

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15, v10, v11}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-static {v14, v15}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 586
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v14, v0

    if-eqz v14, :cond_3

    .line 587
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v14, v0

    const-wide v15, 0x412e848000000000L

    mul-double/2addr v15, v7

    double-to-int v15, v15

    iput v15, v14, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    .line 588
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v14, v0

    const-wide v15, 0x412e848000000000L

    mul-double/2addr v15, v10

    double-to-int v15, v15

    iput v15, v14, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    .line 589
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v14, v0

    const-string v15, "map"

    invoke-virtual {v14, v15}, Lcom/htc/android/footprints/vo/Footprint;->setAccuracyByProvider(Ljava/lang/String;)V

    .line 593
    :cond_3
    new-instance v9, Landroid/location/Location;

    const-string v14, "map"

    invoke-direct {v9, v14}, Landroid/location/Location;-><init>(Ljava/lang/String;)V

    .line 594
    .local v9, location:Landroid/location/Location;
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v14

    invoke-virtual {v9, v14, v15}, Landroid/location/Location;->setTime(J)V

    .line 595
    invoke-virtual {v9, v7, v8}, Landroid/location/Location;->setLatitude(D)V

    .line 596
    invoke-virtual {v9, v10, v11}, Landroid/location/Location;->setLongitude(D)V

    .line 597
    move-object v0, v9

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixLocation:Landroid/location/Location;

    .line 598
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mHandler:Landroid/os/Handler;

    move-object v14, v0

    const/16 v15, 0x66

    const-wide/16 v16, 0x12c

    invoke-virtual/range {v14 .. v17}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 600
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mTextLatLon:Landroid/widget/TextView;

    move-object v14, v0

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    move/from16 v16, v0

    invoke-static/range {v16 .. v16}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLat(I)Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string v16, ", "

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    move/from16 v16, v0

    invoke-static/range {v16 .. v16}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLon(I)Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 602
    invoke-direct/range {p0 .. p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->moveMapCenterToCurrent()V

    .line 604
    :try_start_1
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    move-object v14, v0

    if-eqz v14, :cond_1

    .line 605
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    move-object v14, v0

    invoke-interface {v14}, Lcom/htc/android/footprints/ILocationAgentService;->stopTracking()V
    :try_end_1
    .catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_1

    goto/16 :goto_1

    .line 607
    :catch_1
    move-exception v14

    move-object v4, v14

    .line 608
    .local v4, e:Landroid/os/RemoteException;
    invoke-virtual {v4}, Landroid/os/RemoteException;->printStackTrace()V

    goto/16 :goto_1

    .line 614
    .end local v4           #e:Landroid/os/RemoteException;
    .end local v7           #lat:D
    .end local v9           #location:Landroid/location/Location;
    .end local v10           #lon:D
    .end local v12           #url:Ljava/lang/String;
    .end local v13           #zoom:I
    :cond_4
    const/4 v14, 0x3

    move/from16 v0, p1

    move v1, v14

    if-ne v0, v1, :cond_6

    .line 615
    const/4 v14, 0x0

    move v0, v14

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isRecaptureRunning:Z

    .line 617
    const/4 v14, -0x1

    move/from16 v0, p2

    move v1, v14

    if-ne v0, v1, :cond_1

    .line 622
    const-string v14, "EXTRA_PHOTO_PATH"

    move-object/from16 v0, p3

    move-object v1, v14

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 623
    .local v6, imagepath:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->photoView:Landroid/widget/ImageView;

    move-object v14, v0

    invoke-virtual {v14}, Landroid/widget/ImageView;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object v14

    const/4 v15, 0x0

    invoke-virtual {v14, v15}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V

    .line 628
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->photoView:Landroid/widget/ImageView;

    move-object v14, v0

    invoke-static {v6}, Landroid/graphics/drawable/Drawable;->createFromPath(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 629
    if-eqz v6, :cond_5

    invoke-virtual {v6}, Ljava/lang/String;->length()I

    move-result v14

    if-lez v14, :cond_5

    .line 630
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v14, v0

    iput-object v6, v14, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    .line 634
    :goto_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v14, v0

    new-instance v15, Ljava/io/File;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    move-object/from16 v16, v0

    invoke-direct/range {v15 .. v16}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v15

    iput-object v15, v14, Lcom/htc/android/footprints/vo/Footprint;->mPicFileName:Ljava/lang/String;

    goto/16 :goto_1

    .line 632
    :cond_5
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v14, v0

    const-string v15, ""

    iput-object v15, v14, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    goto :goto_2

    .line 638
    .end local v6           #imagepath:Ljava/lang/String;
    :cond_6
    const/4 v14, 0x2

    move/from16 v0, p1

    move v1, v14

    if-ne v0, v1, :cond_7

    .line 639
    const/4 v14, -0x1

    move/from16 v0, p2

    move v1, v14

    if-ne v0, v1, :cond_1

    .line 641
    const-string v14, "data"

    move-object/from16 v0, p3

    move-object v1, v14

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object p1

    .end local p1
    check-cast p1, Landroid/graphics/Bitmap;

    move-object/from16 v0, p1

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mPhotoBitmap:Landroid/graphics/Bitmap;

    .line 642
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mPhotoBitmap:Landroid/graphics/Bitmap;

    move-object v14, v0

    if-eqz v14, :cond_1

    .line 645
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->photoView:Landroid/widget/ImageView;

    move-object v14, v0

    new-instance v15, Landroid/graphics/drawable/BitmapDrawable;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mPhotoBitmap:Landroid/graphics/Bitmap;

    move-object/from16 v16, v0

    invoke-direct/range {v15 .. v16}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V

    invoke-virtual {v14, v15}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto/16 :goto_1

    .line 650
    .restart local p1
    :cond_7
    const/4 v14, 0x5

    move/from16 v0, p1

    move v1, v14

    if-ne v0, v1, :cond_1

    .line 651
    const/4 v14, -0x1

    move/from16 v0, p2

    move v1, v14

    if-ne v0, v1, :cond_1

    .line 652
    if-eqz p3, :cond_1

    .line 653
    const-string v14, "RETURN_LATITUDE"

    const-wide/16 v15, 0x0

    move-object/from16 v0, p3

    move-object v1, v14

    move-wide v2, v15

    invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->getDoubleExtra(Ljava/lang/String;D)D

    move-result-wide v7

    .line 654
    .restart local v7       #lat:D
    const-string v14, "RETURN_LONGITUDE"

    const-wide/16 v15, 0x0

    move-object/from16 v0, p3

    move-object v1, v14

    move-wide v2, v15

    invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->getDoubleExtra(Ljava/lang/String;D)D

    move-result-wide v10

    .line 655
    .restart local v10       #lon:D
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v14, v0

    if-eqz v14, :cond_1

    .line 657
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v14, v0

    const/4 v15, 0x2

    iput v15, v14, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    .line 658
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v14, v0

    const-wide v15, 0x412e848000000000L

    mul-double/2addr v15, v7

    double-to-int v15, v15

    iput v15, v14, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    .line 659
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v14, v0

    const-wide v15, 0x412e848000000000L

    mul-double/2addr v15, v10

    double-to-int v15, v15

    iput v15, v14, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    .line 661
    new-instance v14, Landroid/location/Location;

    const-string v15, "gps"

    invoke-direct {v14, v15}, Landroid/location/Location;-><init>(Ljava/lang/String;)V

    move-object v0, v14

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixLocation:Landroid/location/Location;

    .line 662
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixLocation:Landroid/location/Location;

    move-object v14, v0

    invoke-virtual {v14, v7, v8}, Landroid/location/Location;->setLatitude(D)V

    .line 663
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFixLocation:Landroid/location/Location;

    move-object v14, v0

    invoke-virtual {v14, v10, v11}, Landroid/location/Location;->setLongitude(D)V

    .line 664
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mHandler:Landroid/os/Handler;

    move-object v14, v0

    const/16 v15, 0x66

    const-wide/16 v16, 0x12c

    invoke-virtual/range {v14 .. v17}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 666
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mTextLatLon:Landroid/widget/TextView;

    move-object v14, v0

    new-instance v15, Ljava/lang/StringBuilder;

    invoke-direct {v15}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    move/from16 v16, v0

    invoke-static/range {v16 .. v16}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLat(I)Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    const-string v16, ", "

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object/from16 v16, v0

    move-object/from16 v0, v16

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    move/from16 v16, v0

    invoke-static/range {v16 .. v16}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLon(I)Ljava/lang/String;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v15

    invoke-virtual {v15}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v15

    invoke-virtual {v14, v15}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 669
    invoke-direct/range {p0 .. p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->moveMapCenterToCurrent()V

    goto/16 :goto_1
.end method

.method public onClick(Landroid/view/View;)V
    .locals 4
    .parameter "view"

    .prologue
    .line 763
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->saveButton:Landroid/view/View;

    if-ne p1, v2, :cond_1

    .line 779
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->saveFootprint()V

    .line 781
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 782
    .local v1, intent:Landroid/content/Intent;
    const-string v2, "DATA"

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 783
    const/4 v2, -0x1

    invoke-virtual {p0, v2, v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->setResult(ILandroid/content/Intent;)V

    .line 787
    :try_start_0
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    if-eqz v2, :cond_0

    .line 788
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v2}, Lcom/htc/android/footprints/ILocationAgentService;->stopTrackingWithoutNotify()V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 794
    :cond_0
    :goto_0
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->finish()V

    .line 796
    .end local v1           #intent:Landroid/content/Intent;
    :cond_1
    return-void

    .line 790
    .restart local v1       #intent:Landroid/content/Intent;
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 791
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6
    .parameter "savedInstanceState"

    .prologue
    const/4 v3, 0x3

    .line 192
    invoke-super {p0, p1}, Lcom/google/android/maps/MapActivity;->onCreate(Landroid/os/Bundle;)V

    .line 193
    iput-object p0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mContext:Landroid/content/Context;

    .line 194
    const/4 v2, 0x1

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->requestWindowFeature(I)Z

    .line 195
    invoke-virtual {p0, v3}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->setVolumeControlStream(I)V

    .line 196
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->checkWirelessNetwork()Z

    move-result v2

    iput-boolean v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->networkConnected:Z

    .line 197
    invoke-static {p0}, Lcom/htc/android/footprints/utils/SettingInfo;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/SettingInfo;

    move-result-object v2

    iget-boolean v2, v2, Lcom/htc/android/footprints/utils/SettingInfo;->showConnectionFailedAlert:Z

    if-eqz v2, :cond_0

    iget-boolean v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->networkConnected:Z

    if-nez v2, :cond_0

    .line 198
    const/16 v2, 0x13

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->showDialog(I)V

    .line 201
    :cond_0
    const v2, 0x7f03000e

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->setContentView(I)V

    .line 203
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 204
    .local v0, activityIntent:Landroid/content/Intent;
    invoke-direct {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isSetasFootprints(Landroid/content/Intent;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 205
    invoke-direct {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->setAsFootprint(Landroid/content/Intent;)Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v2

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 209
    :goto_0
    const v2, 0x7f0c001c

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->titleText:Landroid/widget/EditText;

    .line 210
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->titleText:Landroid/widget/EditText;

    invoke-virtual {v2}, Landroid/widget/EditText;->requestFocus()Z

    .line 211
    const v2, 0x7f0c0039

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->phoneText:Landroid/widget/TextView;

    .line 212
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->phoneText:Landroid/widget/TextView;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setInputType(I)V

    .line 214
    const v2, 0x7f0c003d

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->webText:Landroid/widget/TextView;

    .line 215
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->webText:Landroid/widget/TextView;

    const/16 v3, 0x941

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setInputType(I)V

    .line 218
    const v2, 0x7f0c0025

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->addressText:Landroid/widget/TextView;

    .line 219
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->addressText:Landroid/widget/TextView;

    const/16 v3, 0x2071

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setInputType(I)V

    .line 222
    const v2, 0x7f0c002a

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->photoView:Landroid/widget/ImageView;

    .line 223
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->photoView:Landroid/widget/ImageView;

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mChoosePhotoCb:Landroid/view/View$OnClickListener;

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 225
    const v2, 0x7f0c002c

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/RatingBar;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->rating:Landroid/widget/RatingBar;

    .line 226
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->rating:Landroid/widget/RatingBar;

    const/high16 v3, 0x3f80

    invoke-virtual {v2, v3}, Landroid/widget/RatingBar;->setStepSize(F)V

    .line 228
    const v2, 0x7f0c0048

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->textNote:Landroid/widget/TextView;

    .line 230
    const v2, 0x7f0c005d

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categoryButton:Landroid/widget/Button;

    .line 231
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categoryButton:Landroid/widget/Button;

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mSelectCategoryListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v2, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 233
    const v2, 0x7f0c005e

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMediaPanel:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    .line 235
    const v2, 0x7f0c0062

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/google/android/maps/MapView;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    .line 236
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v2}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v2

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v3}, Lcom/htc/android/footprints/vo/Footprint;->getPoint()Lcom/google/android/maps/GeoPoint;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/google/android/maps/MapController;->setCenter(Lcom/google/android/maps/GeoPoint;)V

    .line 238
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-eqz v2, :cond_3

    .line 239
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v2}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v2

    const/16 v3, 0x11

    invoke-virtual {v2, v3}, Lcom/google/android/maps/MapController;->setZoom(I)I

    .line 243
    :goto_1
    new-instance v2, Landroid/widget/ImageView;

    invoke-direct {v2, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBalloonView:Landroid/widget/ImageView;

    .line 244
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBalloonView:Landroid/widget/ImageView;

    const v3, 0x7f020097

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 245
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->showBalloon()V

    .line 246
    new-instance v2, Landroid/os/Handler;

    invoke-direct {v2}, Landroid/os/Handler;-><init>()V

    new-instance v3, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$1;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$1;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    const-wide/16 v4, 0xc8

    invoke-virtual {v2, v3, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 253
    const v2, 0x7f0c0064

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->saveButton:Landroid/view/View;

    .line 254
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->saveButton:Landroid/view/View;

    invoke-virtual {v2, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 256
    const v2, 0x7f0c005f

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->locationText:Landroid/widget/TextView;

    .line 257
    const v2, 0x7f0c0060

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mTextLatLon:Landroid/widget/TextView;

    .line 258
    const v2, 0x7f0c0061

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mGpsUpdate:Landroid/widget/ImageView;

    .line 259
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mTextLatLon:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->onTextLatLonClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 261
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->initCategoryData()V

    .line 263
    new-instance v2, Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v2, v3}, Lcom/htc/android/footprints/utils/StorageUtil;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    .line 264
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    new-instance v3, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$2;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$2;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    invoke-virtual {v2, v3}, Lcom/htc/android/footprints/utils/StorageUtil;->SetOnChangeStorageListerner(Lcom/htc/android/footprints/utils/StorageUtil$OnChangeStorageListener;)V

    .line 273
    const-string v2, "location"

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/location/LocationManager;

    .line 274
    .local v1, service:Landroid/location/LocationManager;
    const-string v2, "gps"

    invoke-virtual {v1, v2}, Landroid/location/LocationManager;->isProviderEnabled(Ljava/lang/String;)Z

    move-result v2

    iput-boolean v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsEnabled:Z

    .line 275
    iget-boolean v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsEnabled:Z

    if-eqz v2, :cond_1

    .line 276
    const-string v2, "FootprintDetailEditActivity"

    const-string v3, "onCreate. call bind service"

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 277
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->bindLocationAgentService()V

    .line 281
    :cond_1
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    iput v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mCacheLat:I

    .line 282
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    iput v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mCacheLog:I

    .line 283
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mPicFileName:Ljava/lang/String;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mCachePhotoName:Ljava/lang/String;

    .line 285
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mHandler:Landroid/os/Handler;

    new-instance v3, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;

    invoke-direct {v3, p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$3;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;Landroid/content/Intent;)V

    const-wide/16 v4, 0x32

    invoke-virtual {v2, v3, v4, v5}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 308
    return-void

    .line 207
    .end local v1           #service:Landroid/location/LocationManager;
    :cond_2
    const-string v2, "DATA"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v2

    check-cast v2, Lcom/htc/android/footprints/vo/Footprint;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    goto/16 :goto_0

    .line 241
    :cond_3
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v2}, Lcom/google/android/maps/MapView;->getController()Lcom/google/android/maps/MapController;

    move-result-object v2

    const/4 v3, 0x2

    invoke-virtual {v2, v3}, Lcom/google/android/maps/MapController;->setZoom(I)I

    goto/16 :goto_1
.end method

.method protected onCreateDialog(I)Landroid/app/Dialog;
    .locals 8
    .parameter "id"

    .prologue
    const v7, 0x7f0a0004

    const v5, 0x7f0200ad

    const v3, 0x1080027

    const/4 v4, 0x1

    const/4 v6, 0x0

    .line 1071
    packed-switch p1, :pswitch_data_0

    .line 1280
    invoke-super {p0, p1}, Lcom/google/android/maps/MapActivity;->onCreateDialog(I)Landroid/app/Dialog;

    move-result-object v1

    :goto_0
    return-object v1

    .line 1073
    :pswitch_0
    new-instance v1, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v1, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v2, 0x7f0a0077

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const/high16 v3, 0x7f07

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$10;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$10;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    invoke-virtual {v1, v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setItems([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    goto :goto_0

    .line 1096
    :pswitch_1
    new-instance v1, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v1, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v2, 0x7f0a00a4

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1, v7, v6}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categoryNames:[Ljava/lang/String;

    iget v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categoryIndex:I

    new-instance v4, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$11;

    invoke-direct {v4, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$11;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    invoke-virtual {v1, v2, v3, v4}, Lcom/htc/widget/HtcAlertDialog$Builder;->setSingleChoiceItems([Ljava/lang/CharSequence;ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    goto :goto_0

    .line 1113
    :pswitch_2
    :try_start_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    const/4 v2, 0x0

    invoke-interface {v1, v2}, Lcom/htc/android/footprints/ILocationAgentService;->setTimeoutNotify(Z)V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 1117
    :goto_1
    new-instance v1, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v1, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v2, 0x7f0a0044

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1, v5}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f070002

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object v2

    new-instance v3, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$12;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$12;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    invoke-virtual {v1, v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setItems([Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    iput-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mListDialog:Lcom/htc/widget/HtcAlertDialog;

    .line 1200
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mListDialog:Lcom/htc/widget/HtcAlertDialog;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->dlgKeyListener:Landroid/content/DialogInterface$OnKeyListener;

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V

    .line 1212
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mListDialog:Lcom/htc/widget/HtcAlertDialog;

    goto/16 :goto_0

    .line 1114
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 1115
    .local v0, e1:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_1

    .line 1215
    .end local v0           #e1:Landroid/os/RemoteException;
    :pswitch_3
    new-instance v1, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v1, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v2, 0x7f0a009a

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    const v2, 0x7f0a009c

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    const v2, 0x7f0a0065

    invoke-virtual {v1, v2, v6}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNeutralButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    goto/16 :goto_0

    .line 1223
    :pswitch_4
    new-instance v1, Landroid/app/ProgressDialog;

    invoke-direct {v1, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->progressDialog:Landroid/app/ProgressDialog;

    .line 1224
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->progressDialog:Landroid/app/ProgressDialog;

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0a00ac

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 1225
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->progressDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v1, v4}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V

    .line 1226
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->progressDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v1, v4}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    .line 1227
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->progressDialog:Landroid/app/ProgressDialog;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->dlgKeyListener:Landroid/content/DialogInterface$OnKeyListener;

    invoke-virtual {v1, v2}, Landroid/app/ProgressDialog;->setOnKeyListener(Landroid/content/DialogInterface$OnKeyListener;)V

    .line 1228
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->progressDialog:Landroid/app/ProgressDialog;

    goto/16 :goto_0

    .line 1231
    :pswitch_5
    new-instance v1, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v1, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v2, 0x7f0a00a5

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    const v2, 0x7f0a0018

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    new-array v3, v4, [Ljava/lang/Object;

    const/4 v4, 0x0

    iget-object v5, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v5, v5, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    aput-object v5, v3, v4

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    const v2, 0x7f0a0065

    new-instance v3, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$13;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$13;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    invoke-virtual {v1, v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1, v7, v6}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    goto/16 :goto_0

    .line 1256
    :pswitch_6
    new-instance v1, Lcom/htc/android/footprints/commonui/HtcDialog;

    invoke-direct {v1, p0}, Lcom/htc/android/footprints/commonui/HtcDialog;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1}, Lcom/htc/android/footprints/commonui/HtcDialog;->getLocationPickerNotFoundDialog()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    goto/16 :goto_0

    .line 1259
    :pswitch_7
    new-instance v1, Lcom/htc/android/footprints/commonui/HtcDialog;

    invoke-direct {v1, p0}, Lcom/htc/android/footprints/commonui/HtcDialog;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1}, Lcom/htc/android/footprints/commonui/HtcDialog;->getPhotoPickerNotFoundDialog()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    goto/16 :goto_0

    .line 1262
    :pswitch_8
    new-instance v1, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v1, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v2, 0x7f0a0014

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    const v2, 0x7f0a0095

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    const v2, 0x7f0a009d

    new-instance v3, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$14;

    invoke-direct {v3, p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity$14;-><init>(Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;)V

    invoke-virtual {v1, v2, v3}, Lcom/htc/widget/HtcAlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1, v7, v6}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    goto/16 :goto_0

    .line 1277
    :pswitch_9
    new-instance v1, Lcom/htc/android/footprints/commonui/HtcDialog;

    invoke-direct {v1, p0}, Lcom/htc/android/footprints/commonui/HtcDialog;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1}, Lcom/htc/android/footprints/commonui/HtcDialog;->getWirelessDisabledDialog()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v1

    goto/16 :goto_0

    .line 1071
    :pswitch_data_0
    .packed-switch 0xa
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
        :pswitch_5
        :pswitch_6
        :pswitch_7
        :pswitch_8
        :pswitch_9
    .end packed-switch
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 4
    .parameter "menu"

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 441
    const v0, 0x7f0a0059

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v2, v2, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200e0

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 444
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0a0010

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v3, v3, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200ae

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 448
    return v3
.end method

.method protected onDestroy()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 413
    const-string v0, "FootprintDetailEditActivity"

    const-string v1, "onDestroy"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 415
    iget-boolean v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isDelete:Z

    if-nez v0, :cond_0

    .line 416
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->saveFootprint()V

    .line 420
    :cond_0
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->removeQueuedMessages()V

    .line 423
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->unbindLocationAgentService(Z)V

    .line 424
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categories:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    .line 425
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categories:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 426
    :cond_1
    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categories:Ljava/util/ArrayList;

    .line 427
    iput-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categoryNames:[Ljava/lang/String;

    .line 428
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onDestroy()V

    .line 429
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 4
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 677
    const/4 v2, 0x4

    if-ne p1, v2, :cond_1

    .line 678
    const-string v2, "FootprintDetailEditActivity"

    const-string v3, "onKeyDown"

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 679
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->saveFootprint()V

    .line 680
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    if-eqz v2, :cond_0

    .line 682
    :try_start_0
    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v2}, Lcom/htc/android/footprints/ILocationAgentService;->stopTrackingWithoutNotify()V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 688
    :cond_0
    :goto_0
    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    .line 689
    .local v1, intent:Landroid/content/Intent;
    const-string v2, "DATA"

    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 690
    const-string v2, "EDIT_TO_DETAIL"

    const/4 v3, 0x1

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 691
    const/4 v2, -0x1

    invoke-virtual {p0, v2, v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->setResult(ILandroid/content/Intent;)V

    .line 693
    .end local v1           #intent:Landroid/content/Intent;
    :cond_1
    invoke-super {p0, p1, p2}, Lcom/google/android/maps/MapActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v2

    return v2

    .line 683
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 684
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 4
    .parameter "item"

    .prologue
    .line 453
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v2

    .line 454
    .local v2, id:I
    if-nez v2, :cond_2

    .line 455
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    if-eqz v3, :cond_0

    .line 457
    :try_start_0
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v3}, Lcom/htc/android/footprints/ILocationAgentService;->stopTrackingWithoutNotify()V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 462
    :cond_0
    :goto_0
    invoke-static {}, Lcom/htc/android/footprints/utils/FootprintUtils;->getResetIntent()Landroid/content/Intent;

    move-result-object v1

    .line 463
    .local v1, i:Landroid/content/Intent;
    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->startActivity(Landroid/content/Intent;)V

    .line 468
    .end local v1           #i:Landroid/content/Intent;
    :cond_1
    :goto_1
    const/4 v3, 0x0

    return v3

    .line 458
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 459
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0

    .line 464
    .end local v0           #e:Landroid/os/RemoteException;
    :cond_2
    const/4 v3, 0x1

    if-ne v2, v3, :cond_1

    .line 465
    const/16 v3, 0xf

    invoke-virtual {p0, v3}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->showDialog(I)V

    goto :goto_1
.end method

.method protected onPause()V
    .locals 3

    .prologue
    .line 390
    const-string v1, "FootprintDetailEditActivity"

    const-string v2, "onPause"

    invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 392
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onPause()V

    .line 393
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMediaPanel:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    if-eqz v1, :cond_0

    .line 394
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMediaPanel:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    invoke-virtual {v1}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->stopMediaControlPanel()V

    .line 397
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    if-eqz v1, :cond_1

    iget-boolean v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isPickerRunning:Z

    if-nez v1, :cond_1

    iget-boolean v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->isRecaptureRunning:Z

    if-nez v1, :cond_1

    .line 399
    :try_start_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v1}, Lcom/htc/android/footprints/ILocationAgentService;->waitForPause()V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 404
    :cond_1
    :goto_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    if-eqz v1, :cond_2

    .line 405
    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/StorageUtil;->closeStorgaeUtil()V

    .line 408
    :cond_2
    invoke-static {p0}, Lcom/htc/android/footprints/utils/TitleGenerator;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/TitleGenerator;

    move-result-object v1

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/TitleGenerator;->stopTitleSearch()V

    .line 409
    return-void

    .line 400
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 401
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_0
.end method

.method protected onRestoreInstanceState(Landroid/os/Bundle;)V
    .locals 2
    .parameter "savedInstanceState"

    .prologue
    const-string v1, "footprint"

    .line 320
    const-string v0, "footprint"

    invoke-virtual {p1, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 321
    const-string v0, "footprint"

    invoke-virtual {p1, v1}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/vo/Footprint;

    iput-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 322
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->populateFootprintToView()V

    .line 324
    :cond_0
    return-void
.end method

.method protected onResume()V
    .locals 6

    .prologue
    const-string v5, "FootprintDetailEditActivity"

    .line 329
    invoke-static {}, Lcom/htc/android/footprints/utils/FootprintUtils;->isResetByWidget()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 330
    new-instance v1, Landroid/content/Intent;

    const-class v3, Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-direct {v1, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 331
    .local v1, intent:Landroid/content/Intent;
    const/high16 v3, 0x400

    invoke-virtual {v1, v3}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 332
    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->startActivity(Landroid/content/Intent;)V

    .line 333
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->finish()V

    .line 337
    .end local v1           #intent:Landroid/content/Intent;
    :cond_0
    const-string v3, "location"

    invoke-virtual {p0, v3}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/location/LocationManager;

    .line 338
    .local v2, service:Landroid/location/LocationManager;
    const-string v3, "gps"

    invoke-virtual {v2, v3}, Landroid/location/LocationManager;->isProviderEnabled(Ljava/lang/String;)Z

    move-result v3

    iput-boolean v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsEnabled:Z

    .line 339
    iget-boolean v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsEnabled:Z

    if-nez v3, :cond_6

    .line 340
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mGpsUpdate:Landroid/widget/ImageView;

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->onGpsUpdateClickListenerShowAlert:Landroid/view/View$OnClickListener;

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 341
    iget-boolean v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsUpdateRequired:Z

    if-eqz v3, :cond_1

    .line 342
    const/4 v3, 0x0

    iput-boolean v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsUpdateRequired:Z

    .line 348
    :cond_1
    :goto_0
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    if-eqz v3, :cond_7

    .line 350
    :try_start_0
    const-string v3, "FootprintDetailEditActivity"

    const-string v4, "mService.resume() at onResume"

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 351
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v3}, Lcom/htc/android/footprints/ILocationAgentService;->resume()V

    .line 353
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mService:Lcom/htc/android/footprints/ILocationAgentService;

    invoke-interface {v3}, Lcom/htc/android/footprints/ILocationAgentService;->isTimeout()Z

    move-result v3

    if-eqz v3, :cond_2

    .line 354
    const/16 v3, 0xc

    invoke-virtual {p0, v3}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->showDialog(I)V
    :try_end_0
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0

    .line 363
    :cond_2
    :goto_1
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->checkWirelessNetwork()Z

    move-result v3

    iput-boolean v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->networkConnected:Z

    .line 364
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->connectionFailedText:Landroid/widget/TextView;

    if-eqz v3, :cond_3

    iget-boolean v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->networkConnected:Z

    if-eqz v3, :cond_3

    .line 365
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMap:Lcom/google/android/maps/MapView;

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->connectionFailedText:Landroid/widget/TextView;

    invoke-virtual {v3, v4}, Lcom/google/android/maps/MapView;->removeView(Landroid/view/View;)V

    .line 366
    const/4 v3, 0x0

    iput-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->connectionFailedText:Landroid/widget/TextView;

    .line 368
    :cond_3
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    if-eqz v3, :cond_4

    .line 369
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {v3}, Lcom/htc/android/footprints/utils/StorageUtil;->startStorageUtil()V

    .line 372
    :cond_4
    :try_start_1
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onResume()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 377
    :goto_2
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->titleText:Landroid/widget/EditText;

    invoke-virtual {v3}, Landroid/widget/EditText;->hasFocus()Z

    move-result v3

    if-eqz v3, :cond_5

    .line 378
    invoke-static {p0}, Lcom/htc/android/footprints/utils/ImeLauncher;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/ImeLauncher;

    move-result-object v3

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->titleText:Landroid/widget/EditText;

    invoke-virtual {v3, v4}, Lcom/htc/android/footprints/utils/ImeLauncher;->show(Landroid/widget/EditText;)V

    .line 380
    :cond_5
    return-void

    .line 345
    :cond_6
    iget-object v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mGpsUpdate:Landroid/widget/ImageView;

    iget-object v4, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->onGpsUpdateClickListenerDoUpdate:Landroid/view/View$OnClickListener;

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0

    .line 356
    :catch_0
    move-exception v3

    move-object v0, v3

    .line 357
    .local v0, e:Landroid/os/RemoteException;
    invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V

    goto :goto_1

    .line 359
    .end local v0           #e:Landroid/os/RemoteException;
    :cond_7
    iget v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mBindState:I

    if-nez v3, :cond_2

    iget-boolean v3, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->gpsEnabled:Z

    if-eqz v3, :cond_2

    .line 360
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->bindLocationAgentService()V

    goto :goto_1

    .line 373
    :catch_1
    move-exception v0

    .line 374
    .local v0, e:Ljava/lang/Exception;
    const-string v3, "FootprintDetailEditActivity"

    const-string v3, "Google MapActivity error"

    invoke-static {v5, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_2
.end method

.method protected onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 2
    .parameter "outState"

    .prologue
    .line 312
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    if-eqz v0, :cond_0

    .line 313
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->populateToFootprint()V

    .line 314
    const-string v0, "footprint"

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 316
    :cond_0
    return-void
.end method

.method protected onStart()V
    .locals 0

    .prologue
    .line 384
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onStart()V

    .line 386
    return-void
.end method

.method protected onStop()V
    .locals 0

    .prologue
    .line 433
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onStop()V

    .line 435
    return-void
.end method

.method public populateFootprintToView()V
    .locals 3

    .prologue
    .line 969
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->titleText:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 970
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->titleText:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->isFocused()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 971
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->titleText:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->titleText:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->length()I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setSelection(I)V

    .line 973
    :cond_0
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->addressText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 974
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->phoneText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 975
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->webText:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 976
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->rating:Landroid/widget/RatingBar;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mRate:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/widget/RatingBar;->setRating(F)V

    .line 978
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->categoryButton:Landroid/widget/Button;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, v1, Lcom/htc/android/footprints/vo/Footprint;->mCategory:Ljava/lang/String;

    invoke-direct {p0, v1}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->getOriginalCategoryNameAndRecordIndex(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 979
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mMediaPanel:Lcom/htc/android/footprints/view/MediaControlPanelEditMode;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/MediaControlPanelEditMode;->setFootprintData(Lcom/htc/android/footprints/vo/Footprint;)V

    .line 980
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mAccuracy:I

    if-eqz v0, :cond_1

    .line 981
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mTextLatLon:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-static {v2}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLat(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ", "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-static {v2}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLon(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 984
    :cond_1
    return-void
.end method

.method public populateToFootprint()V
    .locals 2

    .prologue
    .line 955
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->addressText:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mAddr:Ljava/lang/String;

    .line 956
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->phoneText:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mTel:Ljava/lang/String;

    .line 957
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->titleText:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    .line 958
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->webText:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mSite:Ljava/lang/String;

    .line 962
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->rating:Landroid/widget/RatingBar;

    invoke-virtual {v1}, Landroid/widget/RatingBar;->getRating()F

    move-result v1

    float-to-int v1, v1

    iput v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mRate:I

    .line 963
    iget-object v0, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->textNote:Landroid/widget/TextView;

    invoke-virtual {v1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/htc/android/footprints/vo/Footprint;->mComment:Ljava/lang/String;

    .line 965
    return-void
.end method

.method public selectImage(Landroid/content/Context;I)V
    .locals 1
    .parameter "context"
    .parameter "requestCode"

    .prologue
    .line 1036
    const-string v0, "image/*"

    invoke-direct {p0, p1, p2, v0}, Lcom/htc/android/footprints/activity/FootprintDetailEditActivity;->selectMediaByType(Landroid/content/Context;ILjava/lang/String;)V

    .line 1037
    return-void
.end method
